package me.ak.event;

import me.ak.model.BarModel;

public class BarEvent {
	
	public static class BarAdded {
		private int barIndex;
		
		public BarAdded(int i) {
			barIndex = i;
		}
		
		public int getBarIndex() {
			return barIndex;
		}
	}
	
	public static class BarUpdated {
		private BarModel newBar;
		private int x, y;
		public BarUpdated(int x, int y, BarModel newBar) {
			this.newBar = newBar; this.x = x; this.y = y;
		}
		
		public BarModel getBar() {
			return newBar;
		}
		
		public int getStaffIndex() {
			return x;
		}
		
		public int getBarIndex() {
			return y;
		}
	}
	
	public static class BarsAppended {
		int barNum;
		public BarsAppended(int am) {
			barNum = am;
		}
		
		public int getAmountAppended() {
			return barNum;
		}
		
	}
	
	public static class BarRemoved {
		int barIndex;
		public BarRemoved(int x) {
			barIndex = x;
		}
		
		public int getBarIndex() {
			return barIndex;
		}
	}

}
